package com.syni.mdd.sjb.common.datatreaure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity.DxshAppServiceOrder;
import com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity.DxshAppServices;
import com.syni.mdd.sjb.common.datatreaure.entity.vo.rq.order.GenerateOrderRqVo;
import com.syni.mdd.sjb.common.datatreaure.entity.vo.rq.services.GetOrderIdRqVo;
import com.syni.mdd.sjb.common.datatreaure.entity.vo.rq.sms.SmsOrderRqVo;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 电享生活商户端APP 服务订单表 服务类
 * </p>
 *
 * @author lcc
 * @since 2020-04-27
 */
public interface DxshAppServiceOrderService extends IService<DxshAppServiceOrder> {
    //增值服务类型
    int addedType = 1;
    //短信服务类型
    int smsType = 2;

    //status状态
    int NO_PAY_STATUS = 0;
    int PAY_STATUS = 1;

    //创建渠道
    int GZH = 1;
    int APP = 2;
    int WXXCX = 3;
    int ZFBXCX = 4;

    Map<String, Object> generateOrder(GenerateOrderRqVo generateOrderRqVo);

    Map<String, Object> generateSmsOrder(SmsOrderRqVo smsOrderRqVo);

    List<DxshAppServiceOrder> onlineAddTypeOrder();

    Map<String,Object> deleteByOrderId(GetOrderIdRqVo getOrderIdRqVo);

    void addInfo(String suffix, Date firstInfoTime, DxshAppServiceOrder dxshAppServiceOrder, DxshAppServices dxshAppServices);
}
